<extend name='Public/demo' />

<block name="contents">

    <div class="row">
        <aside class="profile-nav col-lg-3">
            <section class="panel">
                <div class="user-heading round">
                    <a href="{:U('Visitors/index')}?id={$info.user_id}">
                        <img src="__PUBLIC__{$info.photo}" style='width:100px;height:100px;border-radius: 50%'>
                    </a>
                    <h1>{$info.nickname}</h1>
                    <p>{$info.username}</p>
                </div>
                <ul class="nav nav-pills nav-stacked">
                    <li class="active">
                        <a href="{:U('Visitors/index')}?id={$info.user_id}"> <i class="icon-calendar"></i> 个人简介</a>
                    </li>
                    <li>
                        <a href="{:U('Visitors/news')}?id={$info.user_id}"> <i class="icon-user"></i> 他的动态</a>
                    </li>
                    <li>
                        <a href="{:U('Image/index')}?id={$info.user_id}" target="_blank"> <i class="icon-calendar"></i> 他的相册</a>
                    </li>
<!--                     <li>
                        <a href="{:U('Visitors/friend')}?id={$info.user_id}"> <i class="icon-edit"></i> 他的好友</a>
                    </li> -->
                </ul>
            </section>
        </aside>

        <aside class="profile-info col-lg-9">
        <section class="panel">
                      <div class="bio-graph-heading">
                         {$info.nickname} :  当前经验值 : {$exp} 点  /  当前等级 : {$grade}级
                      </div>
                      <div class="panel-body bio-graph-info">
                          <h1>{$info.nickname}</h1>
                          <div class="row">
                              <div class="bio-row">
                                  <p><span>年龄 </span>: 25</p>
                              </div>
                              <div class="bio-row">
                                  <p><span>性别 </span>:
                                      <if condition="$info['sex'] eq 1 "> 男
                                      <elseif condition="$info['sex'] eq 0"/>女
                                      <else /> 保密
                                      </if>
                                  </p>
                              </div>
                              <div class="bio-row">
                                  <p><span>生日</span>: {$info.birthday|date='Y-m-d',###}</p>
                              </div>
                              <div class="bio-row">
                                  <p><span>地址 </span>: {$info.area}</p>
                              </div>
                          </div>
                      </div>
        </section>
        </aside>
    </div>

</block>
